import { terser } from "rollup-plugin-terser";
import babel from "@rollup/plugin-babel";
import commonjs from '@rollup/plugin-commonjs'

export default {
  input: "./src/ingrun/request/index.js",
  output: {
    file: "./dist/xrequest.js",
    format: "cjs",
  },
  plugins: [
    commonjs(),
    babel({
      babelHelpers: "runtime",
      exclude: "node_modules/**",
    }),
    terser(),
  ],
};
